package com.shansun.event

/**
 * <p></p>
 * @author:     lanbo <br>
 * @version:    1.0  <br>
 * @date:   	2012-4-10
 */
class SynchronizeEventPersistent extends EventPersistent {

    def save(event: Event): Unit = {
   		println("Persistent event [" + event +"] using " + getClass().getName())

   		// SAVE NOTHING, JUST PROCESS IN TIME
        val processors = EventEngine.processors(event.getEventType())
        
        processors.foreach(p => p.process(event))
    }

}